//
//  ViewController.m
//  CollectionView轮播图-封装
//
//  Created by mafeng on 16/8/4.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "ViewController.h"
#import "MFCycleImage.h"
@interface ViewController ()<MFCycleImageDelegate>
@property (weak, nonatomic) IBOutlet MFCycleImage *cycImages;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSArray *array = @[@"4", @"0", @"1", @"2", @"3", @"4", @"0"];
    _cycImages.array = array;
    [self.view addSubview:_cycImages];
    _cycImages.delegate = self;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)didSelect {
    NSLog(@"hahahhahhhaha");
}
// 可以直接改为 MFCycleImageCell
- (void)handleDataWithObject:(id)objc cell:(MFCycleImageCell *)cell {
    NSString *imageName = objc;
    MFCycleImageCell *imageCell = cell;
    imageCell.cycleImage.image = [UIImage imageNamed:imageName];
}
@end





